package wui

import (
	"gitee.com/snxamdf/wui/config"
	"gitee.com/snxamdf/wui/logs"
	"gitee.com/snxamdf/wui/server"
)

func Init() {
	logs.Info("初始化参数并启动服务")
	config.ConfigInit()
	if config.IsEnvDev() {
		logs.Info("开发环境,直接映射静态资源目录.")
	} else if config.IsEnvProd() {
		logs.Info("生产环境,编译静态资源文件到应用里.")
	}
	server.CacheHtmlTemplates()
	var ch = make(chan int, 1)
	go server.HttpServer(ch)
	<-ch
}

func buildDev() {

}
